package com.youngjun.user.service;

import com.youngjun.common.mybatis.service.support.BaseService;
import com.youngjun.user.mapper.FunctionMapper;
import com.youngjun.user.pojo.domain.Function;
import com.youngjun.user.pojo.dto.FunctionDTO;
import com.youngjun.user.pojo.vo.FunctionVO;

import java.util.List;

public interface FunctionService extends BaseService<Function,FunctionMapper> {

    List<FunctionVO> queryAllowAccessFunctionList(Long roleId);

    List<FunctionVO> queryAllowAssignFunctionList(Long roleId);

    List<FunctionVO> queryList();

    FunctionVO create(FunctionDTO dto);

    FunctionVO modify(FunctionDTO dto);

    void delete(Long id);
}